﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Collections;
using Palsta.Core.data;
using Palsta.Core.exp;
using Palsta.Core.action;

namespace Palsta.Core.view
{
    class DomConditionNode : DomNode
    {
        Expression exp;
        DomNode trueNode;
        DomNode falseNode;
        String conditionId = null;

        #region Accessors
        public virtual Expression Exp
        {
            get
            {
                return this.exp;
            }
            set
            {
                this.exp = value;
            }
        }

        public virtual DomNode TrueNode
        {
            get
            {
                return this.trueNode;
            }
            set
            {
                this.trueNode = value;
            }
        }

        public virtual DomNode FalseNode
        {
            get
            {
                return this.falseNode;
            }
            set
            {
                this.falseNode = value;
            }
        }

        public virtual String ConditionID
        {
            get
            {
                return this.conditionId;
            }
            set
            {
                this.conditionId = value;
            }
        }

        #endregion


        public DomNodeType GetNodeType()
        {
            return DomNodeType.Condition;
        }

    }
}
